package cn.com.jinhao.hotline.commons.domain;

import cn.com.jinhao.hotline.commons.base.oracle.BaseEntity;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * hotline-spring-cloud
 * <p>Description: </p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2020/4/6
 * @since 2020-04-06
 */

@ToString
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Table(name = "SYS$LOG")
public class SysLog extends BaseEntity implements Serializable {
    /** 操作用户 */
    private String username;

    /** 描述 */
    private String description;

    /** 方法名 */
    private String method;

    /** 参数 */
    @Column(columnDefinition = "text")
    private String params;

    /** 日志类型 */
    @Column(name = "log_type")
    private String logType;

    /** 请求ip */
    @Column(name = "request_ip")
    private String requestIp;

    /** 地址 */
    @Column(name = "address")
    private String address;

    /** 浏览器  */
    private String browser;

    /** 请求耗时 */
    private String time;

    /** 异常详细  */
    @Column(name = "exception_detail")
    private String exceptionDetail;
}
